﻿using System.Web.Mvc;
using MyCore;
using MyWeb.Common.Authorize;

namespace MyWeb.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/
        [LoginAuthorize]
        public ActionResult Index()
        {
            return View();
        }


        public ActionResult Login()
        {
            return View();
        }

        public ActionResult PostLogin()
        {
            string UserEmail = Request.Params["UserEmail"];
            string UserPsw = Request.Params["UserPsw"];
            WebHelper.WriteCookie("myUserID", UserEmail);
            return View("Index");
        }


        public ActionResult WelcomeIndex() {
            return View();
        }

    }
}
